package com.app.mapper;

import com.app.model.FwRenewalRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 房屋续租记录 Mapper 接口
 * </p>
 *
 * @author yoominic
 * @since 2025-03-21
 */
public interface FwRenewalRecordMapper extends BaseMapper<FwRenewalRecord> {

    IPage<FwRenewalRecord> adminGetFwRenewalRecordList(IPage<FwRenewalRecord> page,
                                                       @Param("status") String status,@Param("houseType") String houseType,
                                                       @Param("fwkeyword")String fwkeyword,@Param("yhkeyword") String yhkeyword,
                                                       @Param("contractNumber") String contractNumber);

    IPage<FwRenewalRecord> getLoginUserFwRenewalRecordList(IPage<FwRenewalRecord> page,
                                                       @Param("userId") Integer userId);

    IPage<FwRenewalRecord> queryFwRenewalRecord(IPage<FwRenewalRecord> page,
                                                       @Param("idValue") String idValue);


    FwRenewalRecord adminGetFwRenewalRecordById(@Param("id") Integer id);
}
